<!DOCTYPE html>
<html>
<title>致信</title>
	<meta charset="utf-8" />
	<s3:data name='ucDatas.headerScript' />
	<s3:import type="css"></s3:import>
	<link rel="stylesheet" href="${data:dependencies.cmp}/css/cmp-listView.css${data:buildversion}" />
	<link rel="stylesheet" href="${data:dependencies.cmp}/css/cmp-picker.css${data:buildversion}" />
	<link rel="stylesheet" href="${data:dependencies.cmp}/css/cmp-search.css${data:buildversion}" />
	<link rel="stylesheet" href="${data:dependencies.cmp}/css/cmp-selectOrg.css${data:buildversion}" />
	<link rel="stylesheet" href="<s3:data name='dependencies.uc'/>/fonts/iconfont.css${data:buildversion}" />
	<link rel="stylesheet" href="<s3:data name='dependencies.uc'/>/css/ucIndex.css${data:buildversion}" />
	<script src="<s3:data name='dependencies.uc'/>/js/ucFlexible.js${data:buildversion}"></script>
	<!--全局变量-->
	${data:variables}
</head>
<body>
	<header id="header" class="cmp-bar cmp-bar-nav cmp-flex-header">
	    <div class="cmp-header-left cmp-action-back" id="prev">
			<span class="cmp-icon see-icon-v5-common-arrow-back"></span>
			<span class="nav-text">返回</span>
		</div>
		<div class="cmp-title">致信</div>
		<div class="cmp-header-right nav-icon-one">
			<span id="add" class="cmp-icon see-icon-add-circle"></span>
		</div>

	    <!-- <h1 class="cmp-title" id="title">致信</h1>
	    <button class="cmp-action-back cmp-btn cmp-btn-blue cmp-btn-link cmp-btn-nav cmp-pull-left" id="prev">
	        <span class="cmp-icon see-icon-v5-common-arrow-back"></span>返回
	    </button>
	    <a class="cmp-icon see-icon-add-circle cmp-pull-right" id="add"></a> -->
	</header>
	<div class="cmp-control-content cmp-active">
		<div id="all_uc" class="cmp-scroll-wrapper">
			<div class="cmp-scroll">
				<ul class="cmp-table-view" id="message_list"></ul>
			</div>
		</div>
	</div>
	<div class="uc-add">
		<!-- <div class="calendar">
            <div>
                <span id="year"></span> /
                <span id="month"></span> /
                <div id="week"></div>
            </div>
            <div id="day"></div>
	    </div> -->
		<div class="uc-chat-way">
			<div class="uc-alone-chat" id="aloneChat">
				<div class="uc-chat-bg uc-alone-chat-bg">
					<i class="uc-chat-icon iconfont icon-uc-icon-create-alone"></i>
				</div>
				<span>发起单人交流</span>
			</div>
			<div class="uc-group-chat" id="groupChat">
				<div class="uc-chat-bg uc-group-chat-bg">
					<i class="uc-chat-icon iconfont icon-create-group"></i>
				</div>
				<span>发起群组交流</span>
			</div>
		</div>
		<div class="uc-close see-icon-error"></div>
	</div>
	
	<script type="text/html" id="ms_list_li">
	    <% var obj = this; %>
	    <% if(obj.toTop){ %>
			    <li class="cmp-table-view-cell cmp-media uc-top" id="<%=obj.toId%>" data-type="<%=obj.type%>" data-toName="<%=obj.toname%>" data-gn="<%=obj.gn%>" data-stime="<%=obj.s_time%>" data-timestamp="<%=obj.timestamp%>" data-block="<%=obj.block%>">
		<% }else{ %>
				<li class="cmp-table-view-cell cmp-media" id="<%=obj.toId%>" data-type="<%=obj.type%>" data-toName="<%=obj.toname%>" data-gn="<%=obj.gn%>" data-timestamp="<%=obj.timestamp%>" data-block="<%=obj.block%>">
				
		<% } %>
					<div class="cmp-slider-handle">
						<div class="uc-head">
							<% if(obj.gn == ""){ %>
								<img id ="h_<%=obj.toId%>" class="cmp-media-object" src="<%=obj.imgsrc%>" />
							<% }else{ %>
								<img class="cmp-media-object" src="<%=obj.imgsrc%>" />
							<% } %>
						</div>
						<div class="cmp-media-body">
							<div class="uc-title">
								<span class="uc-title-l"><%=obj.toname%></span>
								<span class="uc-date"><%=obj.time%></span>
							</div>
							<div class="uc-info">
								<% if(obj.hasEdit){ %>
									<span class="cmp-ellipsis uc-list-draft-style">[草稿] 
										<span class="uc-common-text"><%=obj.hisc%></span>
									</span>
							<% }else{%>
									<% 
									var context = "";
									if(obj.type == "microtalk"){
										context="[语音]";
									}else if(obj.type == "image"){
										context="[图片]";
									}else if(obj.type == "filetrans"){ 
										context="[文件]";
									}else{ 
										context=obj.content;
									} 
									%>
									<% if(obj.from == cmp.member.id){ %>
										<span class="cmp-ellipsis"><%=context%></span>
									<% 
									}else { 
										if(obj.gn){
											if(obj.type == "system"){
												context="系统消息："+context;
											}else{
												context=obj.name+"："+context;
											}
										}
									%>
									<span class="cmp-ellipsis"><%=context%></span>
									<% } %>
								<%}%> 
								<% if(obj.count > 0){ %>
									<% if(obj.block == "1"){ %>
										<% if(obj.count > 99){ %>
											<span id="count_<%=obj.toId%>" class="cmp-badge cmp-badge-grey">99+</span>
										<% }else{ %>
											<span id="count_<%=obj.toId%>" class="cmp-badge cmp-badge-grey"><%=obj.count%></span>
										<% } %>
									<% }else{ %>
										<% if(obj.count > 99){ %>
											<span id="count_<%=obj.toId%>" class="cmp-badge cmp-badge-danger">99+</span>
										<% }else{ %>
											<span id="count_<%=obj.toId%>" class="cmp-badge cmp-badge-danger"><%=obj.count%></span>
										<% } %>
									<% } %>
								<% } %>
							</div>
						</div>
					</div>
				</li>
	</script>
	<s3:data name="cordova"/>
	<s3:import type="js"></s3:import>
	<script src="${data:dependencies.cmp}/js/cmp-listView.js${data:buildversion}"></script>
	<script src="${data:dependencies.cmp}/js/cmp-imgCache.js${data:buildversion}"></script>
	<script src="${data:dependencies.cmp}/js/cmp-picker.js${data:buildversion}"></script>
	<script src="${data:dependencies.cmp}/js/cmp-dtPicker.js${data:buildversion}"></script>
	<script src="${data:dependencies.cmp}/js/cmp-search.js${data:buildversion}"></script>
	<script src="${data:dependencies.cmp}/js/cmp-selectOrg.js${data:buildversion}"></script>
	<!--<script src="${data:dependencies.cmp}/js/cmp-i18n.js${data:buildversion}"></script>-->
	<s3:data name='ucDatas.footerScript'/>
    <script src="<s3:data name='dependencies.uc'/>/js/im/jsjac.js${data:buildversion}"></script>
    <script src="<s3:data name='dependencies.uc'/>/js/im_send_message.js${data:buildversion}"></script>
	<script src="<s3:data name='dependencies.uc'/>/js/im_send_iq.js${data:buildversion}"></script>
	<script src="<s3:data name='dependencies.uc'/>/js/ucEmojiUtil-debug.js${data:buildversion}"></script>
	<script src="<s3:data name='dependencies.uc'/>/js/ucCommonUtil-debug.js${data:buildversion}"></script>
	<script src="<s3:data name='dependencies.uc'/>/js/uc.js${data:buildversion}"></script>
	<script src="<s3:data name='dependencies.uc'/>/js/ucDB.js${data:buildversion}"></script>
	<script src="<s3:data name='dependencies.uc'/>/js/ucIndex.js${data:buildversion}"></script>
</body>
</html>
